package ai.engine;

import engine.GameEngine;
import engine.data.Player;
import util.ArrayList;
import util.List;

public class AIPlayer extends Player {

	public AIP aiPersonality;

	// BUILD CITY TASK
	public boolean cityNeeded;

	// PATHFINDING
	public byte[][] influenceMapping;

	// WORLD PERCEPTION 
	public List unitsNeeded;
	public List enemyUnits;
	public byte explorationPourcentage;

	// TASKS LISTS
	public List tasks = new ArrayList();

	public AIPlayer(final byte playerType, final byte civId, final boolean showOnScreen) {
		super(playerType, civId, showOnScreen);
		aiPersonality = new AIP();
		// BUILD CITY TASK
		cityNeeded = true;

		// WORLD PERCEPTION 
		unitsNeeded = new ArrayList();
		enemyUnits = new ArrayList();
		explorationPourcentage = 0;

		// TASKS LISTS
		tasks = new ArrayList();
	}

	public AIP getAIP() {
		return aiPersonality;
	}

	public void initMap() {
		// PATHFINDING
		influenceMapping = new byte[GameEngine.map.width][GameEngine.map.height];
	}

}
